﻿using LocoyApp.Locoy.Entry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LocoyApp.Locoy
{
    public class CleanWords : LocoyCode
    {
        /// <summary>
        /// 执行方法，不能修改类和方法名称。
        /// </summary>
        /// <param name="content">标签内容</param>
        /// <param name="response">页面响应，包含了Url、原始Html等属性</param>
        /// <returns>返回处理后的标签内容</returns>
        public string Run(string content, ResponseEntry response)
        {
            // 替换内容
            var replaceItems = new List<string>
            {
                "主机版","电脑版","安卓版","IOS版","苹果版","iphone版","PC版","移动版","重制版",
                "扩展版","无限币","正版","正式版","单机版","无敌版","中文版","联机版","双人版",
                "完整版","手机版","汉化版","原版","破解版","网页版","Flash版","怀旧版","经典版",
                "Q版","卡通版","完全版","重制版","绿色版","免安装版","精简版","女生版","女神版",
                "金手指版","Alpha版","内测版","Beta版","Demo版","演示版","Enhanced版","增强版",
                "加强版","Free版","自由版","Full Version版","完全版","Shareware版","共享版",
                "Release版","发行版","Upgrade版","升级版","Retail版","零售版","Plus版","Preview版",
                "预览版","Standard版","标准版","超值版","专业版","简易版","豪华版","注册版","英文版",
                "多语言版","繁体中文版","公测版","内测版","测试版","特别版","试用版"
            };

            foreach (var item in  replaceItems)
            {
                content = content.Replace(item, "");
            }

            //在这里编写处理代码
            return content;
        }
    }
}
